<script src="Libraries/js/js.js"></script>
<?php
	include_once('Models/HocPhan.php');
	include_once('Configs/paging.php');
?>
<form name="capnhatlophp" method="POST">
<table align="center" class="font" width="500px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class=main_1><img border="0" src="Libraries/images/tbl_left.gif" width="10" height="25" /></td>
    <td align=center class=main_1>Xem thời khóa biểu </td>
    <td class=main_1><p align="right"><img border="0" src="Libraries/images/tbl_right.gif" width="10" height="25" /></p></td>
  </tr>
  <tr bgcolor="#dae9f3">
    <td class="border_1" colspan="3" valign="top">
        
            <table border="0" align="center"  >
                <tr>
                    <td >&nbsp;</td>
                    <td >&nbsp;</td>
                </tr>
                <tr>
                    <td align=right><label>Năm học: </label></td>
                    <td>
                        <select name="cbonamhoc">
                            <?php
								$nam = 2000;
								for($i=0;$i<10;$i++){
									$nk=($nam+$i)."-".($nam+$i+1);
                                    echo "<option value='".$nk."'>$nk</option>";
                                }
								echo "<script language=\"javascript\">for(var i=0;i<document.capnhatlophp.cbonienkhoa.length;i++){if(document.capnhatlophp.cbonienkhoa[i].value=='$nienkhoa'){document.capnhatlophp.cbonienkhoa.selectedIndex=i;break;}}</script>";
                                ?>
                             
                        </select>
                        
                        
                    </td>
                </tr>
                <tr>
          	        <td align=right><label>Học kì:</label></td>
                    <td>
                        <select name="cbohocki" onChange="showHocPhan(document.capnhatlophp.cbonamhoc.value,this.value);">
                            
                        	<option value="1" selected <?php if ($_POST['cbohocki']==1) echo "selected='selected'"; ?>>Học kì I</option>;
                            <option value="2" <?php if ($_POST['cbohocki']==2) echo "selected='selected'"; ?>>Học kì II</option>;
							<option value="3" <?php if ($_POST['cbohocki']==3) echo "selected='selected'"; ?>>Học kì hè</option>;      
                        </select>
                        
                    </td>
                </tr>
				<tr>
          	        <td align=right><label>Học phần: </label></td>
                    <td>
                        <select name="cbohp">
                            <?php
								$hp = new HocPhan();
                                $result = $hp->dsTatCaHP();
                                while ($rows=mysql_fetch_array($result)){
                                    echo "<option value='".$rows['mahp']."'";
				
				                    echo ">".$rows['tenhp']."</option>";
                                }
                                echo "<script language=\"javascript\">for(var i=0;i<document.capnhatlophp.cbohp.length;i++){if(document.capnhatlophp.cbohp[i].value=='$mahp'){document.capnhatlophp.cbohp.selectedIndex=i;break;}}</script>";
			
                            ?>
                        </select>
                    </td>
                </tr>
                <tr>
           	      <td align=center colspan="2">
					 <input type="submit" name="btnxem" value="Xem lớp HP" class="button_1"/>
                    <input type="submit" name="btnthem" value="Thêm" class="button_1"/></td>
                </tr>
            </table>
       
           

    </td>
  </tr>
</table>
<br />
<p>&nbsp;</p>
<table align="center" class="font" width="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="main_1"><img border="0" src="Libraries/images/tbl_left.gif" width="10" height="25" /></td>
    <td align="center" class="main_1">Thời Khóa Biểu của Cán bộ<br /> (Ten-maso) </td>
    <td class="main_1"><p align="right"><img border="0" src="Libraries/images/tbl_right.gif" width="10" height="25" /></p></td>
  </tr>
  
  
  
  
    <tr >
    	<td class="border_1" colspan="3" valign="top">
            <table width="500" class="border_1" style="border:none" id="tbmain" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="left" class="main_3"> Nhóm: <?php?> sĩ số: <?php?></td>
                    <td align="center" class="main_3" width="200">
                        <input type="submit" name="btnsualophp" value="Sửa" class="button_1"/>
                        <input type="submit" name="btnxoalophp" value="Xóa"  class="button_1"/>
                        <input name="btncapnhattkb" type="submit"  class="button_1" id="btncapnhattkb" value="Cập nhật TKB"/>
                    </td>
                   
                </tr>
                <tr>
                    <td align="center" colspan="2"><table width="400" border="1" >
                      <tr>
                        <td colspan="4" align="center">Thời Khóa Biểu </td>
                      </tr>
                      <tr>
                        <td width="30" align="center">Thứ</td>
                        <td width="60" align="center">Tiết BĐ </td>
                        <td width="60" align="center">Số Tiết </td>
                        <td width="60" align="center">Phòng</td>
                        
                      </tr>
                      <tr>
                        <td align="center">&nbsp;</td>
                        <td width="60" align="center">&nbsp;</td>
                        <td width="60" align="center">&nbsp;</td>
                        <td width="60" align="center">&nbsp;</td>
                        
                      </tr>
                    </table>                    </td>
                    
                </tr>
                
                
            </table>
            
        </td>
  </tr>
        



		
        	
	



    
</table>
  
</table>
 </form>
<p><br />
  
 
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
